package com.yonyou.pmclouds.stagecheck.rmitf;

import com.yonyou.pmclouds.basecom.entity.PageObject;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.stagecheck.entity.StageCheckVO;

import java.util.Set;

/**
 * @Author chulf
 * @Date 2020/3/31
 * @Description
 **/
public interface StageCheckQuery {

    public StageCheckVO[] queryByProject(String pkProject) throws BusinessException;

    public StageCheckVO queryOneByPk(String pkStageCheck) throws BusinessException;

    public StageCheckVO[] queryByPks(Set<String> pks) throws BusinessException;

    PageObject<Object> queryByCondition(String[] pkProjects, String[] creators, String startDate, String endDate,
                                        int[] billStatus, int pageStart, int pageSize) throws BusinessException;

    /**
     * 引用校验
     * @param code
     * @param ids
     * @return
     * @throws BusinessException
     */
    boolean queryRefByIds(String code, String[] ids) throws BusinessException;
}
